class UsersController < ApplicationController
  before_filter :require_user, :only => [:show, :edit]
  before_filter :require_no_user, :only => :new
  before_filter :load_object

  def new
  end

  def create
  end
  
  def edit
  end

  def show
    redirect_to :action => :edit
  end

  def update
  end

  private
  def load_object
    @user = logged_in? ? current_user : User.new(params[:user])
  end
end
